class Dish < ActiveRecord::Base
	validates :name, :presence => true
  acts_as_taggable
  	
  has_attached_file :image,
    :styles => { :medium => "300x300>", :thumb => "100x100>" },
    :url     => "/attachment/:class/:id/:attachment/:style/:basename.:extension",
    :path  => ":rails_root/public/attachment/:class/:id/:attachment/:style/:basename.:extension"

  belongs_to :customer
  belongs_to :dish_type
end
